package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

@ApiModel(value = "sm_member_agreement_sign")
@Data
@TableName(value = "sm_member_agreement_sign")
public class SmMemberAgreementSign {

	@TableId(value = "id", type = IdType.UUID)
	@ApiModelProperty(value = "")
	private String id;
	/** 商家协议号 */
	@TableField(value = "external_agreement_no")
	@ApiModelProperty(value = "商家协议号")
	private String externalAgreementNo;
	/** 支付类型 */
	@TableField(value = "order_type")
	@ApiModelProperty(value = "支付类型")
	private String orderType;
	/** 支付宝官方协议号 */
	@TableField(value = "agreement_no")
	@ApiModelProperty(value = "支付宝官方协议号")
	private String agreementNo;
	/** 脱敏的支付宝账号 */
	@TableField(value = "alipay_logon_id")
	@ApiModelProperty(value = "脱敏的支付宝账号")
	private String alipayLogonId;
	/** 用户ID */
	@TableField(value = "member_id")
	@ApiModelProperty(value = "用户ID")
	private String memberId;
	/** 时长 */
	@TableField(value = "duration")
	@ApiModelProperty(value = "时长")
	private Integer duration;
	/** 状态： 0-未签约 1-签约成功（agreementNo此时不为空） */
	@TableField(value = "`status`")
	@ApiModelProperty(value = "状态：,0-未签约,1-签约成功（agreementNo此时不为空）2-签约失败 3-签约界面关闭签约按钮，支付成功")
	private String status;
	/** 创建时间 */
	@TableField(value = "create_time")
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;
	/** 下次扣费时间 */
	@TableField(value = "next_pay_time")
	@ApiModelProperty(value = "下次扣费时间")
	private LocalDate nextPayTime;

	public static final String COL_ID = "id";

	public static final String COL_EXTERNAL_AGREEMENT_NO = "external_agreement_no";

	public static final String COL_AGREEMENT_NO = "agreement_no";

	public static final String COL_ALIPAY_LOGON_ID = "alipay_logon_id";

	public static final String COL_MEMBER_ID = "member_id";

	public static final String COL_DURATION = "duration";

	public static final String COL_STATUS = "status";

	public static final String COL_CREATE_TIME = "create_time";
}